package com.teacher;
public class Teacher {
    String name;
    //王 老师，让张三学生 买包烟
    public void rang(Student student){
        double qian = 10;
        //不同类之间方法，调用需要创建对象
        String yan =   student.buy(qian);
        System.out.println("老师拿到了"+yan);
        print();
    }
    public void print(){
        System.out.println("我就打印一句话");
    }
}
